<?php

/**
 * Log Class Model
 *
 * Copyright 2013
 * @author Race Team
 * @version 0.0.1
 * */
class Log extends AppModel {

    /**
     * Name
     *
     * @var string
     */
    public $name = 'Log';
    
    /**
     * @method: saveLogEntry
     * @purpose: create log entry for a user for further check
     * @param $userid
     * @return log id
     * */
    function saveLogEntry($userId = null) {
        $data = array();
        $data['Log']['user_id'] = $userId;
        $this->save($data);
        return $this->getInsertID();
    }
}